﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CNVP.JShop.UI;

using CNVP.Config;

namespace CNVP.JShop.Web.Controls
{
    public partial class validate_user : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var UserName = Request.QueryString["txtUserName"];
            if (!string.IsNullOrEmpty(Request.QueryString["txtUserName"]))
            {
                string _UserFilter = UIConfig.UserFilter;
                if (_UserFilter != "")
                {
                    string[] UserFilterArray = _UserFilter.Split(Convert.ToChar("|"));
                    for (int i = 0; i < UserFilterArray.Length; i++)
                    {
                        if (UserFilterArray[i].ToLower() == UserName.ToLower())
                        {
                            Response.Write("2");
                            return;
                        }
                    }
                }
                BLL.CNVP_Users bll = new BLL.CNVP_Users();
                int b = bll.QurryListByUserName(UserName).Count;
                Response.Write(b);
            }
        }
    }
}